package cn.anlab.anappframe.util;

import android.os.Handler;
import cn.anlab.anappframe.system.CoreApplication;

public class AQ {
	
	/**
	 * 添加到处理序列
	 * @param clazz
	 * @param methodName  ---mark：handler和what都不用了，统一用interest注册
	 * @param param
	 */
	public synchronized static <T>void addToAsyncQueue(Class<T> clazz,  String methodName,  Object ... params) {
		RunTask<T> task = new RunTask<T>(clazz, methodName,  params);
		CoreApplication.getAsyncRunTaskPool().submit(task);
	}

}
